package tictactoe.util;

//~--- non-JDK imports --------------------------------------------------------

import tictactoe.Desk;
import tictactoe.Game;

/**
 *
 * @author Home
 */
public class Result {
    private Desk screenShot;
    private int  turns;
    private int  winner;

    /**
     *
     * @param game
     */
    public Result(Game game) {
        winner     = game.getWinner();
        turns      = game.getTurnCount();
        screenShot = game.getDeskCopy();
    }

    /**
     *
     * @return
     */
    public int getWinner() {
        return winner;
    }

    /**
     *
     * @return
     */
    public int getTurnsCount() {
        return turns;
    }

    /**
     *
     * @return
     */
    public Desk getDesk() {
        return (Desk) screenShot.clone();
    }
}


//~ Formatted by Jindent --- http://www.jindent.com
